//
//  ParkDetailVC.m
//  RENTVISITOR
//
//  Created by wonder on 2017/10/25.
//  Copyright © 2017年 UNN. All rights reserved.
//

#import "ParkDetailVC.h"
#import "RentVieitor.h"
#import "RVHeadView.h"
#import "Starview.h"
#import "FangDetailModel.h"
#import "PlotDetail.h"
#import "MJRefresh.h"
#import "LoginViewController.h"
#import "BrokerModel.h"
#import "UIImageView+WebCache.h"

@interface ParkDetailVC ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong)UITableView     *myTableView;
@property (nonatomic, strong)NSMutableArray  *dataSource;

@end

@implementation ParkDetailVC
- (UITableView *)myTableView
{
    if (!_myTableView) {
        _myTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 64+15, ScreenWidth, ScreenHeight-64-15) style:UITableViewStylePlain];
        _myTableView.bounces = NO;
        _myTableView.dataSource =self;
        _myTableView.delegate = self;
        _myTableView.tableFooterView = [[UIView alloc] init];
        _myTableView.backgroundColor = RGBA(214, 214, 214, 1);
//            [_myTableView registerClass:[MymessageTableViewCell class] forCellReuseIdentifier:@"fristCell"];
        
    }
    return _myTableView;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    
    return 1;
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return self.dataSource.count;
}
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
    return 8;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 100;
}
//- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
//{
////    self.model  = self.dataSource[indexPath.section];
////
////    MymessageTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"fristCell" forIndexPath:indexPath];
////    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
////    [formatter setDateFormat:@"MM-dd hh:mm"];
////    NSString *dateTime = [formatter stringFromDate:[NSDate date]];
////    NSArray *arr      = @[@"system_photo@3x",self.model.title,dateTime,self.model.content];
////    cell.model = arr;
////    cell.backgroundColor = RGBA(214, 214, 214, 1);
////    cell.selectionStyle = UITableViewCellSelectionStyleNone;
////    //    cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
////
////
//    return cell;
//}
//- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
//{
//    MymessageSystemVC *temVC = [[MymessageSystemVC alloc]init];
//    temVC.model              = _dataSource[indexPath.section];
//    temVC.titleStr           = @"System information";
//    [self presentViewController:temVC animated:YES completion:nil];
//
//}
@end
